export const delayCheck = () =>
  new Promise((resolve) => {
    // 生成随机数函数,返回0-50或6000
    const getRandomValue = () => {
      return Math.random() < 0.5 ? Math.floor(Math.random() * 51) : 6000;
    };

    resolve({
      data: {
        result: {
          time: new Date().toISOString(),
          打非治违: getRandomValue().toString(),
          数字港航: getRandomValue().toString(),
          渝你同行: getRandomValue().toString(),
          渝路智管: getRandomValue().toString(),
          渝运安: getRandomValue().toString(),
          轨道智管: getRandomValue().toString(),
          高速畅行: getRandomValue().toString(),
        },
      },
    });
  });
export const springQuantitySentChart = () =>
  new Promise((resolve) => {
    resolve({
      success: true,
      message: "操作成功", 
      code: 200,
      result: [
        {
          rowNum: 1,
          cyDate: "2025-01-14",
          val25: "60.43",
          val24: "68.6",
          val23: "43.42",
          forecast: false
        },
        {
          rowNum: 2,
          cyDate: "2025-01-15", 
          val25: "68.15",
          val24: "67.99",
          val23: "46.04",
          forecast: false
        },
        {
          rowNum: 3,
          cyDate: "2025-01-16",
          val25: "68.79",
          val24: "68.21", 
          val23: "46.28",
          forecast: false
        },
        {
          rowNum: 4,
          cyDate: "2025-01-17",
          val25: "72.55",
          val24: "67.65",
          val23: "47.74", 
          forecast: false
        },
        {
          rowNum: 5,
          cyDate: "2025-01-18",
          val25: "73.92",
          val24: "67.84",
          val23: "49.12",
          forecast: false
        },
        {
          rowNum: 6,
          cyDate: "2025-01-19",
          val25: "76.62",
          val24: "69.39",
          val23: "54.59",
          forecast: false
        },
        {
          rowNum: 7,
          cyDate: "2025-01-20",
          val25: "77.19",
          val24: "72.1",
          val23: "55.08",
          forecast: true
        },
        {
          rowNum: 8,
          cyDate: "2025-01-21",
          val25: "78.47",
          val24: "72.93",
          val23: "49.92",
          forecast: true
        },
        {
          rowNum: 9,
          cyDate: "2025-01-22",
          val25: "79.74",
          val24: "74.36",
          val23: "49.74",
          forecast: true
        },
        {
          rowNum: 10,
          cyDate: "2025-01-23",
          val25: "78.48",
          val24: "73.85",
          val23: "56.23",
          forecast: true
        },
        {
          rowNum: 11,
          cyDate: "2025-01-24",
          val25: "84.17",
          val24: "79.24",
          val23: "60.47",
          forecast: true
        },
        {
          rowNum: 12,
          cyDate: "2025-01-25",
          val25: "85.63",
          val24: "79.41",
          val23: "66.53",
          forecast: true
        },
        {
          rowNum: 13,
          cyDate: "2025-01-26",
          val25: "87.9",
          val24: "81.01",
          val23: "71.77",
          forecast: true
        },
        {
          rowNum: 14,
          cyDate: "2025-01-27",
          val25: "90.14",
          val24: "83.17",
          val23: "72.33",
          forecast: true
        },
        {
          rowNum: 15,
          cyDate: "2025-01-28",
          val25: "79.56",
          val24: "72.43",
          val23: "38.07",
          forecast: true
        },
        {
          rowNum: 16,
          cyDate: "2025-01-29",
          val25: "58.24",
          val24: "51.96",
          val23: "35.06",
          forecast: true
        },
        {
          rowNum: 17,
          cyDate: "2025-01-30",
          val25: "78.83",
          val24: "72.71",
          val23: "52.65",
          forecast: true
        },
        {
          rowNum: 18,
          cyDate: "2025-01-31",
          val25: "87.12",
          val24: "81.09",
          val23: "64.25",
          forecast: true
        },
        {
          rowNum: 19,
          cyDate: "2025-02-01",
          val25: "95.83",
          val24: "89.68",
          val23: "67.24",
          forecast: true
        },
        {
          rowNum: 20,
          cyDate: "2025-02-02",
          val25: "100.52",
          val24: "94.74",
          val23: "79.35",
          forecast: true
        },
        {
          rowNum: 21,
          cyDate: "2025-02-03",
          val25: "101.53",
          val24: "95.89",
          val23: "85.47",
          forecast: true
        },
        {
          rowNum: 22,
          cyDate: "2025-02-04",
          val25: "99.55",
          val24: "92.92",
          val23: "79.09",
          forecast: true
        },
        {
          rowNum: 23,
          cyDate: "2025-02-05",
          val25: "102.91",
          val24: "96.9",
          val23: "80.6",
          forecast: true
        },
        {
          rowNum: 24,
          cyDate: "2025-02-06",
          val25: "93.37",
          val24: "87.42",
          val23: "77.87",
          forecast: true
        },
        {
          rowNum: 25,
          cyDate: "2025-02-07",
          val25: "86.58",
          val24: "81.15",
          val23: "74.43",
          forecast: true
        },
        {
          rowNum: 26,
          cyDate: "2025-02-08",
          val25: "85.54",
          val24: "79.31",
          val23: "72.03",
          forecast: true
        },
        {
          rowNum: 27,
          cyDate: "2025-02-09",
          val25: "79.9",
          val24: "74.23",
          val23: "70.44",
          forecast: true
        },
        {
          rowNum: 28,
          cyDate: "2025-02-10",
          val25: "85.28",
          val24: "71.93",
          val23: "70.65",
          forecast: true
        },
        {
          rowNum: 29,
          cyDate: "2025-02-11",
          val25: "86.37",
          val24: "79.23",
          val23: "68.13",
          forecast: true
        },
        {
          rowNum: 30,
          cyDate: "2025-02-12",
          val25: "93.3",
          val24: "79.48",
          val23: "69.98",
          forecast: true
        },
        {
          rowNum: 31,
          cyDate: "2025-02-13",
          val25: "86.37",
          val24: "86.29",
          val23: "72.92",
          forecast: true
        },
        {
          rowNum: 32,
          cyDate: "2025-02-14",
          val25: "77.9",
          val24: "70.92",
          val23: "62.01",
          forecast: true
        },
        {
          rowNum: 33,
          cyDate: "2025-02-15",
          val25: "72.85",
          val24: "66.22",
          val23: "63.18",
          forecast: true
        },
        {
          rowNum: 34,
          cyDate: "2025-02-16",
          val25: "69.19",
          val24: "62.97",
          val23: "62.73",
          forecast: true
        },
        {
          rowNum: 35,
          cyDate: "2025-02-17",
          val25: "67.28",
          val24: "61.24",
          val23: "67.18",
          forecast: true
        },
        {
          rowNum: 36,
          cyDate: "2025-02-18",
          val25: "76.93",
          val24: "70.93",
          val23: "65.27",
          forecast: true
        },
        {
          rowNum: 37,
          cyDate: "2025-02-19",
          val25: "69.63",
          val24: "63.72",
          val23: "66.66",
          forecast: true
        },
        {
          rowNum: 38,
          cyDate: "2025-02-20",
          val25: "74.67",
          val24: "69.07",
          val23: "55.73",
          forecast: true
        },
        {
          rowNum: 39,
          cyDate: "2025-02-21",
          val25: "63.68",
          val24: "58.18",
          val23: "53.87",
          forecast: true
        },
        {
          rowNum: 40,
          cyDate: "2025-02-22",
          val25: "58.57",
          val24: "53.37",
          val23: "54.06",
          forecast: true
        }
      ],
      timestamp: 1737356964485,
      apiInfo: null
    });
  });
